  
<div id="smallLeft">
    <?php echo form_open_multipart('bookings/edit_code_booking') ?>
    <table>
        <?php foreach ($rows as $row): ?>
            <tr>
                <td>Flight Number: </td>
                <td><?php echo form_input('flight_number', $row->flight_number) ?></td>
            </tr>
            <tr>
                <td>Price Adult: </td>
                <td><?php echo form_input('price_adult', $row->price_adult) ?></td>
            </tr>
            <tr>
                <td>Price Child: </td>
                <td><?php echo form_input('price_child', $row->price_child) ?></td>
            </tr>
            <tr>
                <td>Price Infant: </td>
                <td><?php echo form_input('price_infant', $row->price_infant) ?></td>
            </tr>
            <tr>
                <td>Depart: </td>
                <td><?php echo form_input('simple_departure_time', $row->simple_departure_time) ?></td>
            </tr>
            <tr>
                <td>Arrive: </td>
                <td><?php echo form_input('simple_arrival_time', $row->simple_arrival_time) ?></td>
            </tr>
            <tr>
                <td>fee: </td>
                <td><?php echo form_input('fee', $row->fee) ?></td>
            </tr>
            <tr>
                <td>Class: </td>
                <td><?php echo form_input('class', $row->class) ?></td>
            </tr>
            <tr>
                <td>Code Booking:</td>
                <td><?php echo form_input('code_booking', $row->code_booking) ?></td>
            </tr>
            <tr>
                <td>Keterangan:</td>
                <td><?php echo form_input('keterangan', $row->keterangan) ?></td>
            </tr>
            <?php // if ($row->file): ?>
                <td>Document / File / Tiket</td>
                <td>
                    <input type="file" name="userfile" id="userfile"/>
                </td>
            <?php // endif ?>

            <?php echo form_hidden('id_booking', $row->id) ?>
            <?php echo form_hidden('id_user', $row->id_user) ?>
            <?php echo form_hidden('file_1', $row->file) ?>
            <?php echo form_hidden('price_value', $row->price_value) ?>
            <?php echo form_hidden('code', $row->code) ?>
            <?php echo form_hidden('status', $row->status) ?>
            <tr><td><?php echo form_submit('submit', 'Confirm') ?></td></tr>
        <?php endforeach ?>
    </table>
    <?php echo form_close() ?>
</div>
